<?php

use Illuminate\Support\Facades\Route;

//权限
Route::post('/auth/register', [\App\Http\Controllers\Wx\AuthController::class, 'register']); //z账号注册
Route::post('/auth/reqCaptcha', [\App\Http\Controllers\Wx\AuthController::class, 'reqCaptcha']); //注册验证码
Route::post('/auth/login', [\App\Http\Controllers\Wx\AuthController::class, 'login']); //账号登录
Route::get('/auth/info', [\App\Http\Controllers\Wx\AuthController::class, 'info']); //用户信息
Route::post('/auth/logout', [\App\Http\Controllers\Wx\AuthController::class, 'logout']); //登出
Route::post('/auth/reset', [\App\Http\Controllers\Wx\AuthController::class, 'reset']); //用户重置密码
Route::post('/auth/captcha', [\App\Http\Controllers\Wx\AuthController::class, 'reqCaptcha']); //验证码
Route::post('/auth/profile', [\App\Http\Controllers\Wx\AuthController::class, 'profile']); //账号信息修改

//用户模块-地址
Route::get('/address/list', [\App\Http\Controllers\Wx\AddressController::class, 'list']); //收货地址列表
Route::get('/address/detail', [\App\Http\Controllers\Wx\AddressController::class, 'detail']); //收货地址详情
Route::post('/address/save', [\App\Http\Controllers\Wx\AddressController::class, 'save']); //编辑收货地址
Route::post('/address/delete', [\App\Http\Controllers\Wx\AddressController::class, 'delete']); //删除收货地址

//商品模块-类目
Route::get('/catalog/index', [\App\Http\Controllers\Wx\CatalogController::class, 'index']); //分类类目全部分类
Route::get('/catalog/current', [\App\Http\Controllers\Wx\CatalogController::class, 'current']); //分类类目当前分类

//商品模块-品牌
Route::get('/brand/list', [\App\Http\Controllers\Wx\BrandController::class, 'list']); //品牌列表
Route::get('/brand/detail', [\App\Http\Controllers\Wx\BrandController::class, 'detail']); //品牌详情
